#include <stdio.h>

#include "cmn.h"

void sort(ULONG arr[], ULONG i)
{
	int j = 0, k = 0, ulTemp;

	for (j = i; j > 0; --j)
	{
		for (k = 0; k < j - 1; ++k)
		{
			if ( arr[k] > arr[k+1])
			{
				ulTemp   = arr[k];
				arr[k]   = arr[k+1];
				arr[k+1] = ulTemp;
			}
		}
	}
}

main()
{
	ULONG aulInt[10] = {0},  i;

	for (i = 0; i < 10; ++i)
	{
		scanf("%d", &aulInt[i]);
	}

	sort(aulInt, 10);

	printf("\n");

	for (i = 0; i < 10; ++i)
	{
		printf("%d", aulInt[i]);
	}
}